package org.dna.uimodel;

import org.apache.wicket.model.LoadableDetachableModel;
import org.dna.MetroApplication;
import org.tigris.scarab.model.Issue;

/**
 * Implementation of a LoadableDetachableModel for the Issue entity.
 * */
public class LoadableIssueModel extends LoadableDetachableModel<Issue> {

    private static final long serialVersionUID = 4827846456635844342L;
    private long m_id;

    public LoadableIssueModel(Issue issue) {
        super(issue);
        m_id = issue.getIssueId();
    }

    @Override
    protected Issue load() {
//        return MetroApplication.get().getIssueDAO().queryByID(m_id);
        return null;
    }
}
